import { Base } from '../../utils/base.js';

class Model extends Base {
  constructor() {
    super();
  }

  getUserStore(callback) {
    this.request({
      url: '/store',
      success: function (res) {
        callback && callback(res)
      },
      fail:function(res){
        callback&&callback(res)
      }
    })
  }

  deleteStore(id,callback){
    this.request({
      url:'/delete_store/'+id,
      success:function(res){
        callback&&callback(res)
      },
      fail:function(res){
        wx.showToast({
          title: res.data.msg,
          icon: 'none'
        });
      }
    })
  }
}

export { Model }